package com.b.service.impl;

import org.springframework.stereotype.Service;
import jakarta.annotation.Resource;
import com.b.domain.Dynamic;
import com.b.dao.DynamicMapper;
import com.b.service.DynamicService;
import java.util.List;
@Service
public class DynamicServiceImpl implements DynamicService{

    @Resource
    private DynamicMapper dynamicMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return dynamicMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Dynamic record) {
        return dynamicMapper.insert(record);
    }

    @Override
    public int insertSelective(Dynamic record) {
        return dynamicMapper.insertSelective(record);
    }

    @Override
    public Dynamic selectByPrimaryKey(Integer id) {
        return dynamicMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Dynamic record) {
        return dynamicMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Dynamic record) {
        return dynamicMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Dynamic> getAll() {
        return dynamicMapper.getAll();
    }
}
